﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using YouHP.Model;

namespace YouHP.IDAL
{
    public interface IActivityNews
    {
        #region basic operations
        bool AddActivityNews(ActivityNewsInfo info);
        bool UpdateActivityNews(ActivityNewsInfo info);
        bool DeleteActivityNews(int[] ids);
        ActivityNewsInfo GetActivityNewsInfo(int id);
        #endregion

        #region list and search operations
        List<ActivityNewsInfo> GetActivityNewsList(int pageSize, int pageIndex, out int count);
        /*search for management*/
        List<ActivityNewsInfo> GetActivityNewsByName(int pageSize, int pageIndex, string keyword, out int count);
        #endregion
    }
}